package com.ydx.eureka.consumer.beans;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @ClassName: Bean
 * @Description:
 * @Author
 * @Date 2021/7/21
 * @Version 1.0
 */
@Configuration
public class Beans {
    @LoadBalanced
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
